package day03;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

public class Demo09 {

	public static void main(String[] args) {
		Calendar cal=
				new GregorianCalendar(1923,Calendar.MARCH,8);
		Date date=cal.getTime();
		System.out.println(date);
		SimpleDateFormat sdf=
				new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		String s=sdf.format(date);
		System.out.println(s);
		
		
		
	}

}
